package com.zy;

import com.zy.pojo.User;
import com.zy.service.RoleService;
import com.zy.service.UserService;
import com.zy.vo.PageAto;
import com.zy.vo.RoleVo;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

@RunWith(SpringRunner.class)
@SpringBootTest
public class TsetService {
    @Resource
    private UserService userService;
    @Resource
    private RoleService roleService;


    @Test
    public void ceshi(){
     PageAto  pageAto = roleService.getPageRoleList(1,5,new RoleVo());
     pageAto.getRecord().forEach(System.out::println);
    }
}
